package Loop;

import java.util.*;

/**
 * Enjoy programming!!!
 * Time: 2021/10/27 -  10:17
 */
public class Record00 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int[] record00 = new int[5];
        int[] record01 = new int[5];
        int[] record02 = new int[5];
        int i2 = 0,i1 = 0;
        for (int i,j = 0; j < 3; j++) {
            for (i = 0; i < 5; i++) {
                if (0 == i) {
                    System.out.printf("请输入%d班成绩：", j + 1);
                }
                record00[i] = in.nextInt();
                i1 += record00[i];
            }
            i2 += i1;
            i = 0;
            i1 /= 5;
            System.out.println(j + 1 + "班平均分是" + i1);
        }
        System.out.printf("三个班的总平均分是：%d", i2 / 5 * 3);
//        for (int j = 0; j < 5; j++){
//            if (0 == j){
//                System.out.print("请输入2班成绩：");
//            }
//            record01[j] = in.nextInt();
//        }
//        for (int k = 0; k < 5; k++){
//            if (0 == k){
//                System.out.print("请输入3班成绩：");
//            }
//            record02[k] = in.nextInt();
//        }
//        System.out.println("1班的平均分：" );
//        for (int i1 = 0; i1 < )
    }
}


